package com.engineering.elink.domain;

import io.swagger.annotations.ApiParam;

import java.util.Date;

public class Comment {
	
    private Integer commentId; //主键

    @ApiParam(value="外键",required=true)
    private String fkId;//外键

    @ApiParam(value="评论的内容",required=true)
    private String content;//评论的内容

    private Date time;//时间

    private Integer praiseCount;//点赞数

    private Integer stampCount;//踩数

    @ApiParam(value="评价的星星数，为0 时表示是不带星星的评论，默认是0 ",required=false,defaultValue="0")
    private Integer star;//星星数

    private String byUserId;//评论者用户id

    private String userId;//被评论者用户id

    private Integer parentId;//父节点ID

    private Integer topId;//层级ID

    @ApiParam(value="评论类型1--博文，2--企业，3--职位,4--资料,5--论文,6--新闻,7--技能,8--课程,9--视频,默认1",required=true,defaultValue="1")
    private Integer type;//评论类型1--博文，2--企业，3--职位,4--资料,5--论文,6--新闻,7--技能,8--课程,9--视频,默认1
    
    private Byte authStatus; //是否审核 0--审核中，1--通过审核 2--审核失败
    
    //关联
    private UserView user;
	private UserView buser;
	private int count;//子评论数

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getFkId() {
        return fkId;
    }

    public void setFkId(String fkId) {
        this.fkId = fkId == null ? null : fkId.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(Integer praiseCount) {
        this.praiseCount = praiseCount;
    }

    public Integer getStampCount() {
        return stampCount;
    }

    public void setStampCount(Integer stampCount) {
        this.stampCount = stampCount;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getByUserId() {
        return byUserId;
    }

    public void setByUserId(String byUserId) {
        this.byUserId = byUserId == null ? null : byUserId.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getTopId() {
        return topId;
    }

    public void setTopId(Integer topId) {
        this.topId = topId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

	public UserView getUser() {
		return user;
	}

	public void setUser(UserView user) {
		this.user = user;
	}

	public UserView getBuser() {
		return buser;
	}

	public void setBuser(UserView buser) {
		this.buser = buser;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public Byte getAuthStatus() {
		return authStatus;
	}

	public void setAuthStatus(Byte authStatus) {
		this.authStatus = authStatus;
	}
}